<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>

<div class="h_data">
	<div class="h_newNews">
		<div class="h_viewBox">
			<img src="${member.avatar }" width="120" height="120" alt="头像" />
			<h3>
				详细资料
			</h3>
			<div class="clear"></div>
		</div>
		<div class="dataList">
			<table>
				<tr>
					<td>
						<h3>
							账户信息
						</h3>
					</td>
					<td></td>
				</tr>
				<tr>
					<td class="dataList_Text">
						姓名：
					</td>
					<td>
						<c:out value="${member.username }" />
					</td>
				</tr>
				<tr>
					<td class="dataList_Text">
						角色：
					</td>
					<td>
						${member.roleLabel }
					</td>
				</tr>
				<tr>
					<td class="dataList_Text">
						出生日期：
					</td>
					<td>
						<c:out value="${detail.birthday }" />
					</td>
				</tr>
				<tr>
					<td class="dataList_Text">
						星座：
					</td>
					<td>
						${detail.constellationLabel }
					</td>
				</tr>
				<tr>
					<td>
						<h3>
							基本信息
						</h3>
					</td>
					<td></td>
				</tr>
				<tr>
					<td class="dataList_Text">
						家乡：
					</td>
					<td>
						${detail.birthProvice }${detail.birthCity }${detail.birthDistrict
						}${detail.birthAddress }
					</td>
				</tr>
				<c:if test="${detail.city!=null && detail.city!=''}">
					<tr>
						<td class="dataList_Text">
							现在城市：
						</td>
						<td id="nowCity">
							${detail.city }
						</td>
					</tr>
				</c:if>
				<c:if test="${detail.bloodLabel!=null && detail.bloodLabel!=''}">
					<tr>
						<td class="dataList_Text">
							血型：
						</td>
						<td id="nowCity">
							${detail.bloodLabel }
						</td>
					</tr>
				</c:if>
				<c:if test="${detail.profileLabel!=null && detail.profileLabel!=''}">
					<tr>
						<td class="dataList_Text">
							体型：
						</td>
						<td>
							${detail.profileLabel }
						</td>
					</tr>
				</c:if>
				<c:if test="${detail.mobilephone!=null && detail.mobilephone!=''}">
					<tr>
						<td class="dataList_Text">
							手机：
						</td>
						<td>
							${detail.mobilephone }
						</td>
					</tr>
				</c:if>
				<c:if test="${detail.qq!=null && detail.qq!=''}">
					<tr>
						<td class="dataList_Text">
							qq：
						</td>
						<td>
							${detail.qq }
						</td>
					</tr>
				</c:if>
				<c:if test="${detail.email!=null && detail.email!=''}">
					<tr>
						<td class="dataList_Text">
							邮箱：
						</td>
						<td>
							${detail.email }
						</td>
					</tr>
				</c:if>
				<c:if test="${fn:length(detail.learningList)>0 }">
					<tr>
						<td>
							<h3>
								学习经历
							</h3>
						</td>
						<td></td>
					</tr>
				</c:if>
				<c:forEach items="${detail.learningList }" var="learning">
					<tr>
						<td>
							学校类型：
						</td>
						<td>
							${learning.schoolTypeLabel }
						</td>
					</tr>
					<tr>
						<td>
							学校名称：
						</td>
						<td>
							${learning.school }
						</td>
					</tr>
					<c:if test="${learning.schoolTypeLabel == '大学' }">
						<tr>
							<td>
								院系：
							</td>
							<td>
								${learning.college }
							</td>
						</tr>
					</c:if>
					<tr>
						<td>
							班级：
						</td>
						<td>
							${learning.className }
						</td>
					</tr>
					<tr>
						<td>
							入学年份：
						</td>
						<td>
							${learning.entryDate }
						</td>
					</tr>
				</c:forEach>
				<c:if test="${fn:length(detail.workList)>0 }">
					<tr>
						<td>
							<h3>
								工作经历
							</h3>
						</td>
						<td></td>
					</tr>
				</c:if>
				<c:forEach items="${detail.workList }" var="work">
					<tr>
						<td>
							工作单位：
						</td>
						<td>
							${work.unit }
						</td>
					</tr>
					<tr>
						<td>
							所在部门：
						</td>
						<td>
							${work.department }
						</td>
					</tr>
					<tr>
						<td>
							入职时间：
						</td>
						<td>
							${work.entryYear }-${work.entryMonth }
						</td>
					</tr>
					<tr>
						<td>
							离职时间：
						</td>
						<td>
							${work.departureYear }-${work.departureMonth }
						</td>
					</tr>
				</c:forEach>
				<c:if test="${fn:length(detail.personalityList)>0 }">
					<tr>
						<td>
							<h3>
								个性化资料
							</h3>
						</td>
						<td></td>
					</tr>
				</c:if>
				<c:forEach items="${detail.personalityList }" var="personality">
					<tr>
						<td>
							${personality.name }
						</td>
						<td>
							${personality.value }
						</td>
					</tr>
				</c:forEach>
				<c:if test="${fn:length(detail.contactList)>0 }">
					<tr>
						<td>
							<h3>
								联系方式
							</h3>
						</td>
						<td></td>
					</tr>
				</c:if>
				<c:forEach items="${detail.contactList }" var="contact">
					<tr>
						<td>
							${contact.name }
						</td>
						<td>
							${contact.value }
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>
</div>
